<input hidden="hidden" id="navValue" value="团队管理">
<div class="page-content">
    <div class="page-header">
        <h1>
            团队管理
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                团队列表
            </small>

            <label>
                <h1>
                {$userTeam.user -> User -> nickname}
                 ({$userTeam.user.phone})
            </h1>
            </label>
            &nbsp;&nbsp;&nbsp;<a href="{:url('team/saveExcel1')}?sid={$sid}"><button>导出EXCEL</button></a>
        </h1>
    </div><!-- /.page-header -->
    <div class="row">
        <div class="col-xs-12">
            {$error}
            {if !empty($userTeam.userTeam)}
            <table id="simple-table" class="table  table-bordered table-hover">
                <tr>
                    <td style="width: 20%">sid</td>
                    <td style="width: 20%">用户名</td>
                    <td style="width: 20%">推荐总业绩</td>
                    <td style="width: 30%">推荐下级</td>
                </tr>
                {foreach $userTeam.userTeam as $team}
                <tr>
                    <td>{$team['sid']}</td>
                    <td>{$team['nickname']}</td>
                    <td><a href="{:url('team/fteam')}?sid={$team['sid']}">{$team['total']}</a></td>
                    <td>{$team['recommend']}</td>
                </tr>
                {/foreach}
            </table>
            {/if}
        </div><!-- /.span -->
    </div><!-- /.row -->
    <!-- PAGE CONTENT ENDS -->
</div><!-- /.col -->
</div><!-- /.row -->
</div>
